<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" href="<?php echo $template_path; ?>images/Envision.css" type="text/css" /> <?php echo $jquery; ?>

<title><?php echo $config['name']; ?></title>
	
</head>

<body>
<!-- wrap starts here -->
<div id="wrap">
		
		<!--header -->
		<div id="header">			
				
			<h1 id="logo-text"><a href="<?php echo $config['path']; ?>"><?php echo $config['name']; ?></a></h1>		
			<p id="slogan">dat's right nigga</p>		
			
			<div id="header-links">
			<p>
				<a href="<?php echo $config['path']; ?>">Home</a> | 
				<a href="<?php echo $config['path']; ?>">Contact</a> | 
				<a href="<?php echo $config['path']; ?>">Site Map</a>			
			</p>		
		</div>		
						
		</div>
		
		<!-- menu -->	
		<div  id="menu">
			<ul>
				<li <?php if($_GET['page'] == 'start' || $_GET['page'] == '') echo 'id="current"'; ?>><a href="<?php echo $config['path']; ?>">Home</a></li>
				<li <?php if($_GET['page'] == 'login') echo 'id="current"'; ?>><a href="?page=login">Admin Login</a></li>
				<li <?php if($_GET['page'] == 'todo') echo 'id="current"'; ?>><a href="?page=todo">Todo list</a></li>
				<li><a href="<?php echo $config['path']; ?>">Services</a></li>
				<li><a href="<?php echo $config['path']; ?>">Support</a></li>
				<?php if($_SESSION['session'] == 1) echo '<li><a href="?page=logout">Logout</a></li>'; ?>
				<li class="last"></li>
			</ul>
		</div>					
			
		<!-- content-wrap starts here -->
		<div id="content-wrap">
				
			<div id="sidebar">
			
				<h3>Search Box</h3>	
				<form action="#" class="searchform">
					<p>
					<input name="search_query" class="textbox" type="text" />
  					<input name="search" class="button" value="Search" type="submit" />
					</p>			
				</form>	
					
				<h3>Sidebar Menu</h3>
				<ul class="sidemenu">				
					<li><a href="<?php echo $config['path']; ?>">Home</a></li>
					<li><a href="#TemplateInfo">Template Info</a></li>
					<li><a href="#SampleTags">Sample Tags</a></li>
					<li><a href="http://www.styleshout.com/">More Free Templates</a></li>
					<li><a href="http://www.dreamtemplate.com" title="Web Templates">Web Templates</a></li>
				</ul>
				<?php if($check->isAdmin()) { ?>
				<h3>Admin Panel</h3>
				<ul class="sidemenu">				
					<li><a href="?page=addnews">Add news</a></li>
					<li><a href="?page=addtodo">Add todo</a></li>
				</ul>	
				<?php } ?>
			</div>
				
			<div id="main">
				<?php echo $main; ?>
			</div>
		</div>
					
		<!--footer starts here-->
		<div id="footer">
			
            <p>
				
				&copy; 2010 <strong><?php echo $config['name']; ?></strong>. All right reserved.

				&nbsp;&nbsp;&nbsp;&nbsp;

				<a href="http://www.styleshout.com/">styleshout</a>

				&nbsp;&nbsp;&nbsp;&nbsp;
				
				Built with <strong>AwethCMS</strong>

				&nbsp;&nbsp;&nbsp;&nbsp;
			</p>
			
		</div>	

<!-- wrap ends here -->
</div>

</body>
</html>
